<script setup>
defineOptions({
  name: 'articalContent'
})
defineProps({
  header: {
    required: true,
    type: String
  }
})
</script>

<template>
  <el-card class="box-card" style="height: 100%">
    <template #header>
      <div class="card-header">
        <span>{{ header }}</span>
        <slot name="extra"></slot>
      </div>
    </template>
    <slot name="content"></slot>
  </el-card>
</template>

<style scoped>
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
</style>
